package club.dataresources.service;

import club.dataresources.entity.Order;
import com.github.pagehelper.Page;

import java.util.List;

public interface OrderService {

    //增
	public boolean addOrder(Order order) throws Exception;

	//删
	public boolean removeOrder(Integer orderId) throws Exception;

	//改
	public boolean updateOrder(Order order) throws Exception;

	//查
	public Order findByOrderId(Integer orderId) throws Exception;

	//根据cutomerId找订单
	public List<Order> findOrderByCustomerId(Integer customerId) throws Exception;

	//列表
	public Page<Order> listOrder(Integer page, Integer rows, Order order) throws Exception;

	//用户选择套餐下订单
	public Order getMenuOrder(Integer menuId,Integer customerId) throws Exception;

	//展示该用户最新的一个订单详情
	public Order checkMenuOrder(Order order) throws Exception;

	//在订单确认的时候更改理发师
	public Order changeBarberForOrder(Order order,Integer barberId) throws Exception;
}
